<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title>订单列表</title>
    <link rel="stylesheet" th:href="@{/css/commons.css}"/>
    <script type="text/javascript" th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body th:switch="${errorMsg != null}">
<div th:case="true" th:text="${errorMsg}"></div>
<!--/*@thymesVar id="product" type="com.richie696.rabbit.product.domain.ProductInfo"*/-->
<form th:case="false" action="/order/payment" method="post">
    <div>
        <span>商品名称：</span><span th:text="${product.name}"></span>
    </div>
    <div>
        <span>价　　格：</span><span th:text="${product.price}"></span>元
    </div>
    <div>
        <label>
            <span>购买数量：</span><input id="number" name="num" type="number" value="1" />
        </label>
    </div>
    <div>
        <button type="submit">立即购买</button>
    </div>
    <input type="hidden" name="pid" th:value="${product.id}"/>
    <input type="hidden" name="uid" th:value="1"/>
</form>

</body>
</html>
